package org.adream.account.dao;

import java.util.List;

import org.adream.account.entity.LoginStateEntity;
import org.adream.account.model.UserLoginStateExceptionModel;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface LoginStateDao {
	
	int addLoginState(LoginStateEntity loginState);
	
	int deleteLoginState(@Param("uid") String uid);
	
	int updateWrongTimes(LoginStateEntity loginState);
	
	LoginStateEntity queryLoginStateByUid(@Param("uid") String uid);
	
	List<UserLoginStateExceptionModel> queryUserLoginStateExceptions(@Param("uid") String uid, @Param("dr") Integer dr, @Param("maxWrongTimes") Integer maxWrongTimes);
}